package common.utils;

import java.util.ArrayList;
import java.util.List;

public class ArrayUtil
{
	@SuppressWarnings("unchecked")
	public static <E> List<E> asList(Object[] items)
	{
		ArrayList<E> list = new ArrayList<E>(items.length);

		for (Object item:items)
		{
			list.add((E) item);
		}

		return list;
	}

}
